# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

#import scrapy
from scrapy.item import Item, Field

# 用于保存主体界面的模块数据结构
class CsdnItem(Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    title = Field()     # 用于保存标题名字
    url = Field()       # 用于保存主页中的URL链接
    article = Field()   # 用于保存文章提示部分
    pass
# 用于保存子页面的数据，也就是所爬取的文章部分
class CsdnArticleItem(Item):
    title = Field()     # 文章标题
    article = Field()   # 文章内容
    pass
